
#include "stdafx.h"
#include "macros.h"

using namespace boost::python;

std::string Macros::OutputMethod = "out";

BOOST_PYTHON_MODULE(Macros)
{
   class_<Macros> ("Macros", init<std::string, bool>())
      .def_readonly("lineCorrection",  &Macros::lineCorrection,   "Line corrections to match line from transformed code to source")
      .def_readonly("source",          &Macros::source,           "The initial macros code")
      .def_readonly("code",            &Macros::code,             "Transformed code")
      .add_static_property("OutputMethod", &Macros::get_OutputMethod, &Macros::set_OutputMethod)
   ;
}